package jp.tkym.labs.swing3d.drawer;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Point;


class DrawLine implements DrawG2D{
	Point s;
	Point e;
	Color c = Color.WHITE;
	DrawLine(Point s, Point e, Color c){
		this.s = s;
		this.e = e;
		this.c = c;
	}
	
	@Override
	public void draw(Graphics2D g2d) {
		g2d.setColor(c);
		g2d.drawLine(s.x, s.y, e.x, e.y);
	}
}